<template>
    <div>
        <el-card>
            <p>{{ title }}</p>
            <div class="num">¥{{ num }}</div>
            <slot name="money"></slot>
            <p class="p"></p>
            <slot></slot>
        </el-card>
    </div>
</template>

<script>
export default {
    props: {
        title: String,
        num:[Number,String]
    }
}
</script>
<style lang="scss">
    .p{
        width: 100%;
        border:1px solid gray;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .num{
        font-size: 20px;
    }
</style>